<!--
 * @Author: your name
 * @Date: 2020-10-15 09:07:56
 * @LastEditTime: 2021-02-23 15:14:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \sende_nuxt\components\home\Favorite.vue
-->
<template>
  <div class="Favorite mb70">
    <div class="Favorite_title mb20">
      <h3 class="title ptb10">{{$t("Find your favorite glasses")}}</h3>
      <p class="txt">{{$t("Eyewear for everyone and every need")}}</p>
    </div>
    <div class="Favorite_wrapper">
      <div class="Favorite_shop">
        <div class="Favorite_shop_img">
          <img
            class="img"
            :src="require('~/assets/image/home/screen_time.jpg')"
            alt=""
          />
        </div>
        <div class="Favorite_shop_txt">
          <h4 class="title mb20">
            {{$t("Browse the largest selection of designer eyewear online")}}.
          </h4>
          <div class="btns">
            <nuxt-link to="/" class="btn ptb10 plr20">{{$t("Shop Women")}}</nuxt-link>
            <nuxt-link to="/" class="btn ptb10 plr20">{{$t("Shop Men")}}</nuxt-link>
          </div>
        </div>
      </div>
      <div class="Favorite_shop">
        <div class="Favorite_shop_img">
          <img
            class="img"
            :src="require('~/assets/image/home/screen_time.jpg')"
            alt=""
          />
        </div>
        <div class="Favorite_shop_txt">
          <h4 class="title">{{$t("Logging More Screen Time")}}?</h4>
          <p class="txt">
            {{$t("Browse the largest selection of designer eyewear online. Browse the largest selection of designer eyewear online")}}.
          </p>
          <div class="btns">
            <nuxt-link to="/" class="btn ptb10 plr20">{{$t("Learn more")}}</nuxt-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
@import "~/assets/scss/index.scss";
.Favorite {
  max-width: 1200px;
  margin: 0 auto;
  &_title {
    width: 100%;
    text-align: center;
    .title {
      font-size: 28px;
      font-weight: bold;
    }
    .txt {
      font-size: 14px;
      font-weight: bold;
    }
  }
  &_wrapper {
    @include flex();
    justify-content: space-between;
  }
  &_shop {
    position: relative;
    width: 49%;
    &_img {
      position: relative;
      padding-top: 58%;
      .img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
      }
    }
    &_txt {
      @include flex-center(flex-end);
      flex-direction: column;
      border-left: 1px solid $ddd;
      border-right: 1px solid $ddd;
      border-bottom: 1px solid $ddd;
      box-sizing: border-box;
      padding: 15px 20%;
      height: 140px;
      .title {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        line-height: 1.3;
      }
      .btns {
        @include flex-center();
        width: $s100;
        .btn {
          @include flex-center(center);
          border: 1px solid $c333;
          font-size: 14px;
          border-radius: 20px;
          font-weight: bold;
          &:hover {
            color: $cfff;
            background: $theme1;
            border: 1px solid $theme1;
          }
        }
      }
      .txt {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        padding: 5px 0;
      }
      .ellipsis {
        @include ellipsis();
      }
    }
  }
}
</style>